home *** CD-ROM | disk | FTP | other *** search
/ VRML 2.0 Sourcebook (2nd Edition) / VRML 2.0 Sourcebook CD [md5 fed90f4f9c39d5a60d477058775c7e21].iso / book / mac / ch17 / 17fig09b.wrl < prev    next >
Text File  |  1996-09-23  |  944b  |  42 lines

  1. #VRML V2.0 utf8
  2. # The VRML 2.0 Sourcebook
  3. # Copyright [1997] By
  4. # Andrea L. Ames, David R. Nadeau, and John L. Moreland
  5. Shape {
  6.     appearance Appearance {
  7.         material Material { }
  8.         texture ImageTexture {
  9.             url "icing.jpg"
  10.         }
  11.     }
  12.     geometry Extrusion {
  13.         creaseAngle 1.57
  14.         beginCap FALSE
  15.         endCap   FALSE
  16.         crossSection [
  17.         # Circle
  18.              1.00  0.00,   0.92 -0.38,
  19.              0.71 -0.71,   0.38 -0.92,
  20.              0.00 -1.00,  -0.38 -0.92,
  21.             -0.71 -0.71,  -0.92 -0.38,
  22.             -1.00 -0.00,  -0.92  0.38,
  23.             -0.71  0.71,  -0.38  0.92,
  24.              0.00  1.00,   0.38  0.92,
  25.              0.71  0.71,   0.92  0.38,
  26.              1.00  0.00
  27.         ]
  28.         spine [
  29.         # Circle
  30.              2.00 0.0  0.00,   1.85 0.0 -0.77,
  31.              1.41 0.0 -1.41,   0.77 0.0 -1.85,
  32.              0.00 0.0 -2.00,  -0.77 0.0 -1.85,
  33.             -1.41 0.0 -1.41,  -1.85 0.0 -0.77,
  34.             -2.00 0.0  0.00,  -1.85 0.0  0.77,
  35.             -1.41 0.0  1.41,  -0.77 0.0  1.85,
  36.              0.00 0.0  2.00,   0.77 0.0  1.85,
  37.              1.41 0.0  1.41,   1.85 0.0  0.77,
  38.              2.00 0.0  0.00,
  39.         ]
  40.     }
  41. }
  42.